bitkeeper revision 1.1562.1.1 (4295effbUWTVBipGBrKsyDh6-2FoaQ)
authorvh249@arcadians.cl.cam.ac.uk <vh249@arcadians.cl.cam.ac.uk>
Thu, 26 May 2005 15:49:15 +0000 (15:49 +0000)
committervh249@arcadians.cl.cam.ac.uk <vh249@arcadians.cl.cam.ac.uk>
Thu, 26 May 2005 15:49:15 +0000 (15:49 +0000)
add name and pid of app that is using TLS

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
linux-2.6.11-xen-sparse/arch/xen/kernel/fixup.c

index 1c01b9178742fb04a6096106a03ba2e27a8d3778..6e81f6ada65cb0ea92f50c7a2cf41afc46c7532c 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/delay.h>
 #include <linux/version.h>
 
+#define DA(_f, args...) printk(KERN_ALERT "  " _f "\n", args)
 #define DP(_f) printk(KERN_ALERT "  " _f "\n")
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
@@ -56,6 +57,7 @@ __LINKAGE void do_fixup_4gb_segment(struct pt_regs *regs, long error_code)
         DP("");
         DP("***************************************************************");
         DP("***************************************************************");
+        DA("** process using TLS: %16s (pid: %5d)          **", current->comm, current->tgid);
         DP("** WARNING: Currently emulating unsupported memory accesses  **");
         DP("**          in /lib/tls libraries. The emulation is very     **");
         DP("**          slow. To ensure full performance you should      **");